package cn.onein.edu.util;

import java.util.ResourceBundle;

/**
 * 各种配置信息的获取工具
 * @author Upton
 *
 */
public class ResourceUtil {
	private static final String MAIL_SERVER_PROPERTIES_PATH = "prop.mailServerInfo";
	private static final String JOB_MONITOR_MAIL_PROPERTIES_PATH = "prop.jobMonitorMailInfo";
	private static final String PAYMENT_PROPERTIES_PATH = "prop.payment.paymentInfo";
	private static final String DAILY_PROPERTIES_PATH = "prop.promotion.daily";
	
	/**
	 * 邮件服务器配置信息的取得
	 * @return
	 */
	public static ResourceBundle getMailServerProperties(){
		return ResourceBundle.getBundle(MAIL_SERVER_PROPERTIES_PATH);
	}
	
	/**
	 * Job监控邮件配置信息的取得
	 * @return
	 */
	public static ResourceBundle getJobMonitorMailProperties(){
		return ResourceBundle.getBundle(JOB_MONITOR_MAIL_PROPERTIES_PATH);
	}
	
	/**
	 * 支付属性配置的取得
	 * @return
	 */
	public static ResourceBundle getPaymentProperties(){
		return ResourceBundle.getBundle(PAYMENT_PROPERTIES_PATH);
	}
	
	/**
	 * 经典指南属性配置的取得
	 * @return
	 */
	public static ResourceBundle getDailyProperties(){
		return ResourceBundle.getBundle(DAILY_PROPERTIES_PATH);
	}
}
